using UnityEngine;
using System.Collections;

public class Bomb : MonoBehaviour {
	
	float dice;
	
	bool once;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void FixedUpdate (){
		
		if (once){
			
		dice= Random.Range(0.2f,50); 
		once=false;
			
		}
		
		
		
		if(Rat.fuck==1){  //variavel dentro de rato tipo inteira
			
			once=true;	
			
			transform.rigidbody.AddForce(new Vector3(0,dice*-1,0));
			Debug.Log ("fuck");
			
		}else if (Rat.fuck==0){
			
			once=false;
		}
		//else if(!Rat.RatMove)
	}//FixedUpdate
	
	
}
